package com.waypolice.mapper;

import com.waypolice.pojo.CmsWarehouseRack;
import com.waypolice.pojo.CmsWarehouseRackExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmsWarehouseRackMapper {
    int countByExample(CmsWarehouseRackExample example);

    int deleteByExample(CmsWarehouseRackExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CmsWarehouseRack record);

    int insertSelective(CmsWarehouseRack record);

    List<CmsWarehouseRack> selectByExample(CmsWarehouseRackExample example);

    CmsWarehouseRack selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CmsWarehouseRack record, @Param("example") CmsWarehouseRackExample example);

    int updateByExample(@Param("record") CmsWarehouseRack record, @Param("example") CmsWarehouseRackExample example);

    int updateByPrimaryKeySelective(CmsWarehouseRack record);

    int updateByPrimaryKey(CmsWarehouseRack record);

    /*
    查询树
     */
    List<CmsWarehouseRack> selectTree(String warNumber);

    /*
    查询仓库中最大的排号或者柜号
     */
    String selectMaxWarNumber(String pkNumber, String raOne);
    /*
    删除tree
     */
    Integer deleteTree(String warNumber);
}